<@pp.dropOutputFile />
<#list project.entities as entity>
<@pp.changeOutputFile name="/webapp/WEB-INF/pages/" + entity.className?lower_case + "Form.jsp" />
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/commons/taglibs.jsp" %>
<html>
<head>
	<%@ include file="/commons/meta.jsp" %>
	<title>${entity.className} Manage</title>
</head>

<body id="towColLayout">

	<div id="container" class="clearfix">
		<div id="header" class="clearfix">
			<div  class="clearfix">
				<img id="logo" src="style/images/logo.jpg" width="268" height="63" alt="SpringSide" />
				<h1>CodeGen Sample</h1>
			</div>
			<ul id="mainNav">
				<#list project.entities as entity>
				<li><a href="${entity.className?lower_case}.do">${entity.className}</a></li>
				</#list>
			</ul>
		<!--End Header-->
		</div>

		<div id="sideContent">
			<div class="shell">
				<div id="navBox" class="cbSide">
					<h3>管理对象</h3>
					<ul id="sideNav">
						<#list project.entities as entity>
						<li><a href="${entity.className?lower_case}.do">Click Here Managerment ${entity.className}</a></li>
						</#list>
					</ul>
				<!--End Box-->
				</div>
			<!--End Shell-->
			</div>
		<!--End SideContent-->
		</div>
	
		<div id="content">
			<div class="shell">
				<h1>${entity.className} Infomation Manage</h1>
				<html:form action="/${entity.className?lower_case}.do" focus="name" styleClass="form" onsubmit="return validateUserForm(this)">
					<input type="hidden" name="method" value="save"/>
					<html:hidden property="id"/>
					<table>
						<tr>
							<td><label>Name:</label></td>
							<td>
								<html:text property="name" styleClass="text"/>
								<span class="req">*</span>
								<span class="fieldError"><html:errors property="name"/></span>
							</td>
						</tr>
						<tr>
							<td><label>Decription:</label></td>
							<td>
								<html:textarea property="descn" styleClass="textarea"/>
							</td>
						</tr>
					</table>
					<div>
						<html:submit property="saveBtn" styleClass="button">Save</html:submit>
						<html:cancel styleClass="button">Cancel</html:cancel>
					</div>
				</html:form>
			</div>
		<!--End Content-->
		</div>
	<!--End Container-->
	</div>
<%@ include file="/commons/footer.jsp" %>
<html:javascript formName="${entity.className?lower_case}Form" staticJavascript="false" dynamicJavascript="true" cdata="false"/>
<script type="text/javascript" src="${r"${ctx}"}/scripts/validator.jsp"></script>
</body>
</html>
</#list>